
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head>

	<title>GESTOR INCIDENCIAS</title>
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/menu.css">
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>
	
	<script src="js/menu.js"></script>
	<script>
	function mostrar(num, prin, fin){
		
		/*paginacion*/
			var numpag=10;
			var numero=num;
			var principio=prin+numero;
		
			//var final=fin+numero;
			var final=principio+numpag;
			/*fin paginacion*/
		
			var xmlhttp;
                if (window.XMLHttpRequest)
                {// code for IE7+, Firefox, Chrome, Opera, Safari
                    xmlhttp=new XMLHttpRequest();
                }
                else
                 {// code for IE6, IE5
                     xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                 }
            xmlhttp.onreadystatechange=function()
             {
                if (xmlhttp.readyState==4 && xmlhttp.status==200)
                 {
				  	
				 	document.getElementById("busqueda").innerHTML=xmlhttp.responseText;             
                 }
				
               	
			   }
        
            xmlhttp.open("GET","php/mostrarproveedor.php?principio="+principio+"&fin="+final+"&numpag="+numpag,true); 
            xmlhttp.send();
			}
	
	</script>
</head>

<body onload="mostrar(0,0,10)">

<?php
require('php/cabecera.php');
?>

	<script>
			(function($){
				
				//cache nav
				var nav = $("#topNav");
				
				//add indicator and hovers to submenu parents
				nav.find("li").each(function() {
					if ($(this).find("ul").length > 0) {
						/*$("<span>").text("^").appendTo($(this).children(":first"));*/

						//show subnav on hover
						$(this).mouseenter(function() {
							$(this).find("ul").stop(true, true).slideDown();
						});
						
						//hide submenus on exit
						$(this).mouseleave(function() {
							$(this).find("ul").stop(true, true).slideUp();
						});
					}
				});
			})(jQuery);
		</script>
	
<div id="contenido">
<?php
require('php/menuvproveedores.php');
?>
	
		<div id="principal" >
		
			<h2><?php echo $xtituelimprov;?></h2>
			<div id="busqueda">
				
			</div>
		</div>
	</div>
	
	<div id="pie">
		<?php 
		include("pie.php");
		?>
	</div>

</div>	
</body>
</html>
